X-Git-Url: https://git.hcoop.net/clinton/website/site/unknownlamer.org.git/blobdiff_plain/36fbff92b7edb67ac1c4b6502309bc9375533b9c..5480ea57e35757caeaeeb0402b07057a99ae912a:/Metaobject%20Protocols.html diff --git a/Metaobject Protocols.html b/Metaobject Protocols.html index ef27539..f629002 100644 --- a/Metaobject Protocols.html +++ b/Metaobject Protocols.html @@ -274,11 +274,11 @@ enable selective modification of individual facets with minimal code.

(options) ...) (defmethod generic-name ((parameter type) parameter ...) - "documentation string" + "documentation string" body) (defgeneric foo (bar baz quux) - (:documentation "Process the baz with the quux capacitor to make the + (:documentation "Process the baz with the quux capacitor to make the foo widget fly into the sky at warp speed")) (defmethod foo ((bar example) baz (quux capacitor)) @@ -410,7 +410,7 @@ languages to expose a reflective MOP.

 (defgeneric example-inspect (instance)
-  (:documentation "Simple object inspector using CLOS MOP"))
+  (:documentation "Simple object inspector using CLOS MOP"))
 
 (defmethod example-inspect ((instance t))
   (format t "Simple Object~% Value: ~S~%" instance))
@@ -487,10 +487,10 @@ details to the program.

;;; Metaclass (defclass observable (standard-class) () - (:documentation "Metaclass for observable objects")) + (:documentation "Metaclass for observable objects")) (defmethod compute-slots ((class observable)) - "Add a slot for storing observers to observable instances" + "Add a slot for storing observers to observable instances" (cons (make-instance 'standard-effective-slot-definition :name 'observers :initform '(make-hash-table) @@ -554,7 +554,7 @@ details to the program.

slot-name) (gethash slot-name (slot-value instance 'observers))) -(defmethod (setf slot-value-using-class) :before (new-value +(defmethod (setf slot-value-using-class) :before (new-value (class observable) instance slot) @@ -804,12 +804,9 @@ implementation as possible.

-

Last Modified: - January 30, 2009

+ January 21, 2013

\ No newline at end of file